package com.laex;

import javax.microedition.lcdui.Command;
import javax.microedition.lcdui.List;

public class ExpenseReportView extends List {

	public ExpenseReportView(Command back) {
		super("Expense Report", List.EXCLUSIVE);
		this.setFitPolicy(List.TEXT_WRAP_ON);
		this.addCommand(back);
	}
	
	public void loadReport() {
		String arr[] = RecordUtil.getExpenseReport();
		this.deleteAll();
		for (int i=0; i<arr.length; i++) {
			String item = arr[i];
			this.append(item, null);
		}
	}

}
